<?
$access_list=select_lines_all_items($table_Prefix."access_record","","equipmentid = '".$detail['nid']."' order by applydate desc,nid desc","");?>

<table class="layui-table">
    <colgroup>
        <col width="80">
        <col width="200">
        <col >
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>序号</th>
        <th>签到日期</th>
<!--        <th>金额</th>-->
        <th>负责人</th>
        <th>状态</th>
        <th>备注</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php
    for ($i = 0; $i < count($access_list); $i++) {
        ?>
        <tr>
            <td><?echo $i+1?></td>
            <td><?echo substr($access_list[$i]['applydate'],0,10)?></td>
<!--            <td>--><?//echo $access_list[$i]['payment']?><!--</td>-->

            <?$authur=select_one_line_all_items($table_Prefix."employee","nid = '".$access_list[$i]['authur']."'");
            ?>

            <td><?echo $authur["name"]?></td>

            <td><?echo $access_list[$i]['status']?></td>
            <td><?echo $access_list[$i]['remark']?></td>
            <td>

                    <a href="../access_record/detail-edit.php?nav-itemed=equipment&equipmentid=<? echo $access_list[$i]['equipmentid']?>&nid=<? echo $access_list[$i]['nid']?>" class="layui-btn layui-btn-primary layui-btn-small" >
                        <i class="layui-icon">&#xe642;</i>修改
                    </a>
                </td>

        </tr>
        <?;}?>
    </tbody>
</table>